<template>
  <div>
    <h1>数据源监控</h1>
    <div v-for="item in monitorList" :key="item">{{item}}</div>
  </div>
</template>

<script>
import { getMonitorList } from '@/api/monitor'

export default {
  name: 'index',
  data() {
    return {
      monitorList: []
    }
  },

  mounted() {
    this.initMonitorList()
  },

  methods: {
    initMonitorList() {
      getMonitorList({pageNum : 1, pageSize: 1000}).then(res => {
        const {code ,msg, data} = res
        if (code === 200) {
          this.monitorList = data
        }
      })
    }
  }
}
</script>

<style scoped>

</style>
